package com.zyong.design.pattern.mediator.case2;

/**
 * 窗帘
 * @program: zyong-design-pattern
 * @ClassName: Curtains
 * @author: zyong
 * @create: 2024-04-04 08:57
 */
public class Curtains extends AbstractColleague {
    public Curtains(Mediator mediator, String name) {
        super(mediator, name);
    }

    @Override
    public void sendMessage(int stateChange) {
        getMediator().getMessage(stateChange, name);
    }

    public void upCurtains() {
        System.out.println("升起窗帘");
    }

    public void downCurtains() {
        System.out.println("降下窗帘");
    }
}
